//
//  CountryCard.m
//  Risiko
//
//  Created by Murgia Giovanni on 07/07/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "CountryCard.h"


@implementation CountryCard
-(id) initWithCountry:(Country*)aCountry andType:(NSString*) aType{
	[super init];
	myCountry = aCountry;
	name = [myCountry getName];
	type = aType;
	return self;
}
-(id) initJolly{
	[super init];
	myCountry = NULL;
	name = @"Jolly";
	type = @"Jolly";
	return self;
}
-(NSString*) getName{
	return name;
}
-(NSString*) getType{
	return type;
}
-(Boolean) isTheSameType:(CountryCard*)aCountryCard{
	return [[aCountryCard getType] isEqualToString:type];
}
@end
